<!--
/**
* Author: gaohui
* Date: 2023-05-08 14:55
* Desc: ChartComp 图表组件
*/
-->

<template>
  <title-line title="图表组件" />
  <my-chart :data="dataArr"></my-chart>
</template>

<script name="ChartComp" lang="ts" setup>
import { ref } from "vue";
import { chartDataType } from "@/common/MyChart/config";

const dataArr = ref<chartDataType[]>([
  {
    name: "测试数据列1",
    type: "line",
    data: [
      {
        name: "1.1",
        value: 1,
      },
      {
        name: "1.2",
        value: 2,
      },
      {
        name: "1.3",
        value: 3,
      },
      {
        name: "1.1",
        value: 1,
      },
    ],
  },
]);
</script>
<style lang="scss" scoped></style>
